<template>
  <div>
    <el-card style="text-align: center">
      <el-row>
        <el-col :span="12">
          <el-carousel height="400px" :interval="3000" arrow="always" style="border: 3px solid black;padding: 5px">
            <el-carousel-item v-for="item in carouselIMG" :key="item.src">
              <img :src="item" style="width: 100%; height: 100%"/>
            </el-carousel-item>
          </el-carousel>
        </el-col>
        <el-col :span="12">
          <img :src="image1" style="width: 60%; height: 80%">
          <div style="margin-top: 30px">
            <h2>易下，最优美的下载站</h2>
            <div style="margin-top: 10px">为解决大多数用户不会下载软件</div>
            <div>或者下错软件</div>
          </div>
        </el-col>
      </el-row>
    </el-card>
  </div>
</template>

<script>
export default {
  name: "Carousel",
  data() {
    return {
      image1: require('../assets/首页图片2.1.jpg'),
      carouselIMG: [
        require('../assets/首页图片2.1.jpg'),
        require('../assets/首页图片2.2.jpg'),
        require('../assets/首页图片2.3.jpg'),
        require('../assets/首页图片2.4.jpg'),
      ],
    }
  }
}
</script>

<style scoped>

</style>
